Northwoods.GoXam.Model Namespace > TreeModel<NodeType,NodeKey> Class > Load Method : Load<NodeDataType>(XContainer,XName) Method |
XContainer
holding all of the data
XElement
holding node data
XContainer
holding node data, replace this model's NodesSource collection with a collection of new node data.Public Overloads Sub Load(Of NodeDataType As {New, TreeModelNodeData(Of NodeKey)})( _ ByVal root As XContainer, _ ByVal nodename As XName _ )
public void Load<NodeDataType>( XContainer root, XName nodename ) where NodeDataType: new(), TreeModelNodeData<NodeKey>
XContainer
holding all of the dataXElement
holding node dataAll of the changes to this model are performed within a transaction.
This does not set the IsModified property to false. You may wish to do so, depending on your application requirements. You might also wish to clear the UndoManager.